<?php
$this->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
$this->headTitle()->setSeparator(' - ');
$this->headTitle('MedAdvisor');
echo $this->doctype(); ?>

		<head>			
				   
				<?php echo $this->headMeta(); ?>
				<?php echo $this->headTitle(); ?>
				
				<script type="text/javascript" src="/med-advisor/application/layouts/scripts/JS/jquery-1.6.2.min.js"></script>				
				<script type="text/javascript" src="/med-advisor/application/layouts/scripts/JS/jquery-ui-1.8.16.custom.min.js"></script>
				<script type="text/javascript" src="/med-advisor/application/layouts/scripts/JS/jquery.tablesorter.min.js"></script>
				<script type="text/javascript" src="/med-advisor/application/layouts/scripts/JS/JScriptsFunctions.js"></script>
			 
			 	<link type="text/css" href="/med-advisor/application/layouts/scripts/css/smoothness/jquery-ui-1.8.16.custom.css" rel="Stylesheet" />
				<link type="text/css" href="/med-advisor/application/layouts/scripts/css/blue/style.css" rel="Stylesheet" />
				<link type="text/css" href="/med-advisor/application/layouts/scripts/css/main.css" rel="Stylesheet" />
				<link type="text/css" href="/med-advisor/application/layouts/scripts/css/tables.css" rel="Stylesheet" />
				
		</head>
 		
	<body>
	
		<!-- start header -->
		<div id="header">
			<a id="headerlink" href="<?php echo $this->url(array('controller'=>'Home','action'=>'index')) ?>"><img src="/med-advisor/application/layouts/scripts/css/med-advisor/invisible.png" /></a>
			<a id="logoutlink" href="<?php echo $this->url(array('controller'=>'Login','action'=>'logout')) ?>">Logout</a>
		</div>
		<!-- end header -->
		
			<div id="contentTop">
				&nbsp;
			</div>
			
		<div id="main">
		<!-- start left -->
		<div id="left">
			<label class="standard">
			<?php 
					$session = Zend_Registry::get('session');
					if($session->user['Username'] != ""){
    	 				echo "&nbsp;&nbsp;&nbsp;Loged in as: ". $this->escape($session->user['Username']);
    	 			}
    	 		?>
			</label>
			
			<div id="menu">
				<ul>
					<li id="home_li"><a href="<?php echo $this->url(array('controller'=>'Home','action'=>'index')) ?>">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Home</a></li>
					<li id="profile_li"><a href="<?php echo $this->url(array('controller'=>'Profile','action'=>'index'))."?id=". $this->escape($session->user['id']) ?>">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Profile</a></li>
					<li id="friends_li"><a href="<?php echo $this->url(array('controller'=>'Friends','action'=>'index'))?>">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Friends</a></li>
					<li id="msg_li"><a href="<?php echo $this->url(array('controller'=>'Messages','action'=>'index'));?>">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Messages</a></li>
					<li id="grp_li"><a href="<?php echo $this->url(array('controller'=>'Group','action'=>'index'));?>">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Groups</a></li>
					<li id="thread_li"><a href="<?php echo $this->url(array('controller'=>'Threads','action'=>'index'));?>">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Threads</a></li>
					<li id="match_li"><a href="<?php echo $this->url(array('controller'=>'Search','action'=>'matchme'));?>">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Match Me</a></li>

				</ul>
			</div>
			<div id="chart">
				<label class="standard">Your friends mood today:</label>
				<br/>
				<img src="/med-advisor/application/layouts/scripts/css/med-advisor/chart_n.png" width="148" height="141"/>
			</div>
		</div>
		<!-- end left -->
		
		
		<!-- start content -->
		<div id="content">
				<h1><?php echo $this->escape($this->title); ?></h1>
				<?php echo $this->layout()->content; ?>
				<p>&nbsp; </p>
		</div>
		<!-- end content -->

		
		<!-- start right -->
		<div id="right">
			<a id="searchlink" href="<?php echo $this->url(array('controller'=>'Search','action'=>'index'));?>"><img src="/med-advisor/application/layouts/scripts/css/med-advisor/search_n2.png" width="110" height="26"/></a>
			<div id="innerRight" class="content">
				<p>Space reserved for your advertisement </p>
				<p>Space reserved for your advertisement </p>
				<p>Space reserved for your advertisement </p>
				<p>Space reserved for your advertisement </p>
			</div>
			<a id="facebook" href="http://www.facebook.com/"><img src="/med-advisor/application/layouts/scripts/css/med-advisor/facebook-icon.jpg" width="26" height="26"/></a>
			<a id="twitter" href="http://www.twitter.com/"><img src="/med-advisor/application/layouts/scripts/css/med-advisor/twitter-icon.png" width="26" height="26"/></a>
			
		</div>
		<!-- end right -->
		
		<!-- start footer -->
		

		<div style="clear:both; font-size:0px;">&nbsp;</div>
		</div> <!-- end main div -->

			<div id="contentBottom">
			&nbsp;
			</div>
			
		<div id="footer">
			<br/>
			<label class="foot">Privacy &nbsp;&nbsp;&nbsp;&nbsp; Terms of use &nbsp;&nbsp;&nbsp;&nbsp; Sitemap &nbsp;&nbsp;&nbsp;&nbsp; 2011 All Rights Reserved</label>
			<p>&nbsp;</p>
		</div>
		<!-- end footer -->
		
	
	</body>
